-
Notifications
You must be signed in to change notification settings - Fork 0
3d model loading #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3d model loading #60
Conversation
using assimp library to load 3d models
might be causing Windows client not to build. for some reason I was converting it to c_str before
Confirmed to work on lab machines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything works on my end (Apple silicon) and I see a very teal bearl. I'm glad you found a library for model loading, and from a brief look over the documentation it seems like it's going to save us a lot of time on all of the model and animation work.
all renderable items inherit from the renderable class to avoid redefining functionality they all share (translation, scaling)
also added some comments to clarify what each shader can and can't do
also mess with model shading a bit more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for grinding this stuff out. Graphics programming gets me like 💀
These commits got merged into #56 |
This PR adds the
Model
class which can load a model from a file. These formats are supported.Instructions for downloading models is on the README of this branch.
Texture loading is not working yet and needs further debugging.
The one blocker right now is making sure it compiles on Windows (lab and GitHub actions). I'm working on figuring this out but before then I'd like to get some thoughts on the code.
Originally I was going to write my own parser (take one from a tutorial or CSE167). However, it was getting a bit cumbersome and there were many model format variations that I had to handle. Instead, I opted to use the Assimp library to perform the model loading. It's been recommended by previous 125 groups to reduce the complexity of loading models.
5/4 Update:
This PR grew out of just loading models and has turned into loading materials and textures. I think once we are able to load the player model it should be merged.
- [ ] initial light sources(punting this to another PR)